Measurement of lung elastance by two methods